<script src="lib/vue-2.4.0.js" type="text/javascript" charset="utf-8"></script>
<script src="https://cdn.jsdelivr.net/npm/vue"></script>

<div id="app">
	<input type="button" id="" value="按钮" @click="flag=!flag" />
	<p v-if="flag">哈哈哈啊哈哈哈哈哈哈哈啊哈</p>
	<p v-show="flag">哈哈哈啊哈哈哈哈哈哈哈啊哈</p>
</div>

<script type="text/javascript">
	var ve = new Vue({
		el: '#app',
		data: {
			flag: true,
		},
		methods: {
			click1() { }
		}
	})
</script>